#ifndef __PREFIX_TREE__
#define __PREFIX_TREE__

#define ALPHABET_SIZE 26

struct trieNode {
    struct trieNode *child[ALPHABET_SIZE];
    int isEndOfWord;
};

typedef struct trieNode trieNode_t;

trieNode_t * createNode();
int isEmpty(trieNode_t *root);
void insert(trieNode_t *root, char *string);
int search(trieNode_t *root, char *string);
trieNode_t *delete(trieNode_t *root, char *string);

#endif